<?php if (!$calldata) exit(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $name ?></title>
</head>
<body>
	<h1><?php echo $name ?> <small>(<?php echo "<a href=\"$url\">$shorturl</a>" ?>)</small></h1>
	<h2><?php lecho("Profile"); ?></h2>
	<p><?php lecho("Name") ?>: <?php echo $name ?></p>
	<p><?php lecho("Nickname") ?>: <?php echo $nickname ?></p>
	<p><?php lecho("Age") ?>: <?php echo $age ?></p>
	<p><?php lecho("City") ?>: <?php echo "$city ($country)" ?></p>
	<h2><?php lecho("Friends") ?></h2>
	<ul>
		<?php
			foreach ($friend as $s) {
				# <li><a href="url" rel="xfn">friend</a>
				$pattern = '<li><a href="%s" rel="%s">%s</a>';
				printf($pattern, $s["url"], $s["xfn"], $s["name"]);
			}
		?>
	</ul>
</body>
</html>
